/*
 * @Author: kang_mou carl0608@126.com
 * @Date: 2023-04-21 10:54:53
 * @LastEditors: kang_mou kangh@gov-security.com
 * @LastEditTime: 2023-04-21 13:49:46
 * @FilePath: \create-sim\src\prompt.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import prompts from "prompts";

const promptList = [
 {
  type: "select",
  message: "请选择模板",
  name: "template",
  default: "react",
  choices: [
   {
    title: "react-template",
    value: "react",
   },
   {
    title: "vue3-template",
    value: "vue3",
   },
  ],
 },
];

export const getPromptValue = async () => {
 const res = await prompts(promptList);
 return res;
};
